import { onMounted, reactive } from 'vue'

export function useCounter() {
  const state = reactive({
    count: 1
  })


  onMounted(() => {
    setTimeout(() => {
      state.count++
    }, 3000)
  })

  return state
}
